package tagdb.fragmentation;

/**
 * <
 * This class represents the Peak interface.
 *
 * @author Thilo Muth
 */
public interface Peak {

    /**
     * This method returns the m/z.
     *
     * @return double
     */
    public double getMZ();

    /**
     * This method returns the intensity.
     *
     * @return double
     */
    public double getIntensity();

    /**
     * Returns charge information for this peak.
     *
     * @return the charge
     */
    public int getCharge();

    /**
     * Comparing two peaks for equality.
     * @param p Peak p
     * @return true of the peak are equal
     */
    public boolean equals(SpectrumPeak p);
}
